import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Login from '../views/Login.vue'
import Backdatacontrol from '../views/Backdatacontrol.vue'
import Syscontrol from '../views/Syscontrol.vue'
import AboutView from '../views/AboutView'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/AboutView',
    name: 'AboutView',
    component: AboutView
  }, {
    path: '/Login',
    name: 'Login',
    component: Login
  }, {
    path: '/Backdatacontrol',
    name: 'Backdatacontrol',
    component: Backdatacontrol
  }, {
    path: '/Syscontrol',
    name: 'Syscontrol',
    component: Syscontrol
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
